import { RouteRecordRaw } from 'vue-router';
import * as mdi from '@quasar/extras/mdi-v6';

const systemRoutes: RouteRecordRaw[] = [
  {
    path: '/system',
    component: () => import('src/layouts/MainLayout.vue'),
    meta: { title: '系统管理', icon: mdi.mdiCogOutline },
    children: [
      {
        path: 'user',
        name: 'User',
        component: () => import('src/pages/system/user/index.vue'),
        meta: { title: '用户管理', icon: mdi.mdiAccountOutline },
      },
      {
        path: 'role',
        name: 'Role',
        component: () => import('src/pages/system/role/index.vue'),
        meta: { title: '角色管理', icon: mdi.mdiAccountGroupOutline },
      },
      {
        path: 'menu',
        name: 'Menu',
        component: () => import('src/pages/system/menu/index.vue'),
        meta: { title: '菜单管理', icon: mdi.mdiMenu },
      },
      {
        path: 'dict',
        name: 'Dict',
        component: () => import('src/pages/system/dict/index.vue'),
        meta: { title: '字典管理', icon: mdi.mdiBookOutline },
      },
      {
        path: 'config',
        name: 'Config',
        component: () => import('src/pages/system/config/index.vue'),
        meta: { title: '参数配置', icon: mdi.mdiSquareEditOutline },
      },
    ],
  },
];

export default systemRoutes;
